import requests
from script.get_contest_info.config.vjudge_config import headers ,cookies, have_passwd
def vj_response(contest_id):
    if have_passwd:
        response = requests.get(url='https://vjudge.net/contest/rank/single/' + str(contest_id) , headers=headers , cookies=cookies )
    else:
        response = requests.get(url='https://vjudge.net/contest/rank/single/' + str(contest_id) )
    return response.text

if __name__ == '__main__':
    print(vj_response('648764'))